<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
<title>后台管理系统</title>
<link rel="stylesheet" href="__PUBLIC__/Admin/css/css.css">
</head>
<body>
<div class="nav">
	<div class="nav_title">
    	<h4><img class="nav_img" src="__PUBLIC__/Admin/img/tab.gif" /><span class="nav_a">用户管理 -> 抽奖设置</span></h4>
    </div>
</div>
<h2 align="center" style="margin-top:20px;">抽奖设置</h2>
<form method="post" action="{:U('User/xianzhi_jifen')}" >
<div style="padding:20px 0; margin-left:100px;">
    设置每次抽奖积分限制：<input name="xianzhi_jifen" class="input" type="text" value="{$result2.xianzhi_jifen}" style="width:60px;" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"> 分及以上
	设置每天抽奖次数限制(0:无限制)：<input name="times" class="input" type="text" value="{$result2.times}" style="width:60px;" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
    <button type="submit" class="button" id="button">保存修改</button>
</div>
</form>

<form name="myform" method="post" action="__SELF__" >
 
<div class="list">
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="details">
        <tbody>
	      <tr>
	        <td bgcolor="#CFC6C7"><div align="center">ID</div></td>
	        <td bgcolor="#CFC6C7"><div align="center">奖品等级</div></td>
	        <td bgcolor="#CFC6C7"><div align="center">奖品名称</div></td>
	        <td bgcolor="#CFC6C7"><div align="center">概率</div></td>
          </tr>
          <foreach name="result" item="vo">
	      <tr>
	        <td width="16%"><div align="center">{$vo.id}<input name="id[]" type="hidden" value="{$vo.id}"></div></td>
	        <td width="27%"><div align="center"><input type="text" name="jiangpin_dengji[]" class="input" value="{$vo.jiangpin_dengji}"></div></td>
	        <td width="29%"><div align="center">
	          <input type="text" name="jiangpin_name[]" class="input" value="{$vo.jiangpin_name}">
            </div></td>
	        <td width="28%"><div align="center">
	          <input type="text" name="jiangpin_gailv[]" class="input" value="{$vo.jiangpin_gailv}" style="width:50px;">&nbsp;%
	        </div></td>
          </tr>
          </foreach>
		  <tr>
            <td colspan="5"><div align="center">
            <!-- 注意:经营者进行抽奖式有奖销售，最高奖金额(同期市场同类商品或服务的正常价格折算后)不得超过5000元，否则即构成违法。 --></div></td>
          </tr>
          <tr>
            <td colspan="5"><div align="center">
            <button type="submit" class="button" id="button" style="min-width:200px;">保 存</button></div></td>
          </tr>
                   
         </tbody>
  		</table>
</div>
</form>


</body>
</html>
